package com.self.baseutile.components;

import com.self.baseutile.R;

/**
 * Craeted by: huangdx
 * Date : 2021/2/24
 * Describe :
 */
public class ToastUtils {



    /**
     * 自定义居中显示toast
     */
    public static void Errorshow( CharSequence msg) {
        com.hjq.toast.ToastUtils.setView(R.layout.toast_center_error);
        com.hjq.toast.ToastUtils.show(msg);
    }

    public static void Warnshow( CharSequence msg) {
        com.hjq.toast.ToastUtils.setView(R.layout.toast_center_warn);
        com.hjq.toast.ToastUtils.show(msg);
    }


}
